package cn.tedu.io.file;

import java.io.FileWriter;

public class FileWriterDemo3 {
    public static void main(String[] args) {
        //jdk1.7出现的---try with resources
        try (FileWriter writer=new FileWriter("D:\\a.txt")){
            writer.write("abc");
        }catch (Exception e){

        }
    }
}
